<?php
$this->pageTitle=Yii::app()->name . ' - 登录';
?>

<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
    ),
)); ?>
<fieldset> 
<legend>用户登录</legend>
<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model, 'user_name', array('class'=>'span3')); ?>
<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'span3')); ?>
<?php echo $form->checkboxRow($model, 'rememberMe'); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'icon'=>'ok', 'label'=>'登 录')); ?>
</fieldset>
<?php $this->endWidget(); ?>

